<?php
if (isset($_GET['o']) &&  !empty($_GET['o']) ){
    include 'load.php';
    $openid=$_GET['o'];
    $mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
    if (!$mysqli->set_charset("utf8")) {}
    $query=$mysqli->query("SELECT memberno FROM uinfo where openid='".$openid."' limit 0,1 ");
    $isU=6;
    if($query->num_rows>0){
        $getUser=$query->fetch_array();
        if (!empty($getUser['memberno'])){
            $isU=1;
        }
    }
    $mysqli->close();
    echo json_encode(array('r'=>$isU));
}

